// module.exports = {
//     plugins: {
//      'autoprefixer': {
//       browsers: ['Android >= 4.0', 'iOS >= 7']
//      },
//      'postcss-pxtorem': {
//       rootValue: 16,//结果为：设计稿元素尺寸/16，比如元素宽320px,最终页面会换算成 20rem
//       propList: ['*']
//      }
//     }
//    }
const { VantResolver } = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');


module.exports = {
    lintOnSave:false,
    css:{
        loaderOptions:{
            postcss:{
                plugins: [
                    require('postcss-pxtorem')({rootValue: 37.5,//结果为：设计稿元素尺寸/37.5，比如元素宽375px,最终页面会换算成 10rem
                    propList: ['*']}),
                ],
            },
        },
    },
    configureWebpack: {
        plugins: [
          ComponentsPlugin({
            resolvers: [VantResolver()],
          }),
        ],
      },
    
   }